package cn.jtcoding.common.framework.enums;

import lombok.Getter;

public enum ApiResultCode {
    SUCCESS("OK", "api.result.success"),
    UNKNOWN_ERROR("UNKNOWN_ERROR", "api.result.message.unknown-error"),
    PARAM_IS_INVALID("P0001", "api.result.message.parameters-are-invalid"),
    GET_LOCK_FAIL("L0001", "api.result.message.parameters-are-invalid");

    @Getter
    private final String code;
    @Getter
    private final String msg;

    ApiResultCode(String code, String msg) {
        this.code = code;this.msg = msg;
    }
}
